#!/bin/bash

arr={1}
for i in {0..6}
do 
	arr[$i]=1
	j=`expr $i - 1`
	while(( $j > 0 ))
	do
		arr[$j]=$(( ${arr[ $j ]} + ${arr[ $(($j-1)) ]}))
		j=$(($j-1))			
	done
	k=0
	while(( $k <= $i ))
	do
		printf "%2d  " ${arr[$k]}
		k=`expr $k + 1`
	done
	printf "\n"
done
